package com.zc.zby.basicframedemo.viewholder;

import android.view.View;

import com.facebook.drawee.view.SimpleDraweeView;
import com.facebook.fresco.helper.Phoenix;
import com.facebook.fresco.helper.controller.SingleImageControllerListener;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.zc.zby.basicframedemo.R;

public class FrescoViewHolder extends BaseViewHolder<String> {

    private SimpleDraweeView mSimpleDraweeView;

    public FrescoViewHolder(View view) {
        super(view);
        mSimpleDraweeView = $(R.id.SimpleDraweeView);
    }

    @Override
    public void setData(String data) {
        super.setData(data);
        Phoenix.with(mSimpleDraweeView).load(data);
    }
}
